package edu.gatech.cs2340.teamrocket.control;

import java.awt.EventQueue;
import javax.swing.JFrame;
import edu.gatech.cs2340.teamrocket.control.guicontrol.MainMenuControl;
import edu.gatech.cs2340.teamrocket.view.*;

/**
 * Class that has the main method.
 *
 * @author Joe Tacheron
 */
public class Main {

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    GameFrame mainWindow = new GameFrame();
                    mainWindow.setBounds(0, 0, 1024, 768);
                    mainWindow.setResizable(false);
                    mainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    new MainMenuControl(mainWindow);
                    mainWindow.setVisible(true);

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }
}
